import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPublicMiniPlayer } from "./SPublicMiniPlayer";
import { SArenaOrderKey } from "./SArenaOrderKey";
type int = number;
//class SPlayerArenaResult
    
    export  class SPlayerArenaResult extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPlayerArenaResult();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.player.__write(arg1);
            this.key.__write(arg1);
            arg1.writeInt(this.fightCount);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.player = new SPublicMiniPlayer();
            this.player.__read(arg1);
            this.key = new SArenaOrderKey();
            this.key.__read(arg1);
            this.fightCount = arg1.readInt();
            return;
        }

        public /* const */_type: int=147;

        public /* var */player: SPublicMiniPlayer;

        public /* var */key: SArenaOrderKey;

        public /* var */fightCount: int;

        public static /* var */_regist: SPlayerArenaResult;
    }

            SPlayerArenaResult._regist = new SPlayerArenaResult(true);
        